<?php echo $javascript->link('thickbox', false); ?>
<div class="uploads index">
<h1><?php __('Uploads');?></h1>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('New Upload', true), array('action'=>'add')); ?></li>
	</ul>
</div>

<div class="float-break">
<?php foreach ($uploads as $upload): ?>
	<div class="list-view">
		<h3><?php echo $html->link($upload['Upload']['title'], array('action'=>'view', $upload['Upload']['id'])); ?></h3>
		<?php echo $this->renderElement('../uploads/thumb', array("upload" => $upload)); ?>
		<p>
			<?php echo $html->link(__('Edit', true), array('action'=>'edit', $upload['Upload']['id'])); ?> 
			<?php echo $html->link(__('Delete', true), array('action'=>'delete', $upload['Upload']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $upload['Upload']['id'])); ?>
		</p>
	</div>
<?php endforeach; ?>
</div>

</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('New Upload', true), array('action'=>'add')); ?></li>
	</ul>
</div>
